package socketmvc.client.context;

public class ThreadSocketChannelHandler {

    private final static ThreadLocal<SocketChannel> channelThreadLocal = new ThreadLocal<>();

    public static SocketChannel get(){
        return channelThreadLocal.get();
    }

    public static void set(SocketChannel context){
        channelThreadLocal.set(context);
    }

    public static void remove(){
        channelThreadLocal.remove();
    }

}
